package com.cskaoyan.shopping.remote;

import com.cskaoyan.order.dal.entitys.Stock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author : bunnyupup
 * @description :
 * @date : Created in 2022/8/25 20:03
 */
@FeignClient("duolai-order")
public interface CartApiClient {

    @GetMapping(value = "/cart/stock")
    Stock getStock(@RequestParam("itemId") Long id);
}
